<template>
    <div class="assignment-header">
      <button class="back-button" @click="$router.push('/student/homework/card')">← AIGC作业</button>
      <span class="correct_header1">{{ submit_time }}</span>
      <span class="correct_header2">第{{ assignmentNumber }}次作业:</span>
      <span class="correct_header2">{{ user_name }}</span>
    </div>
    <div class="correct_content">
      <div class="correct_content1">
        <p class="correct_title">题目{{ question_order }}(10分)</p>
        <p class="correct_question">&nbsp;&nbsp;&nbsp;{{ question_text }}</p>
        <div class="answer_content">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ answer_text }}
        </div>
      </div>
      <div class="correct_content2">
        <p class="correct_title2">参考答案</p>
        <p class="correct_answer_cotent">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ correct_answer }}</p>
      </div>
      <div class="correct_content3">
        <span><span style="color: brown;font-weight: 900;">*&nbsp;</span>您的得分：</span>
        <span>100</span>
        <p>教师评语：</p>
        <p class="grade_input">很不错</p>
      </div>
      <div class="correct_button">
        <button class="correct_button1" @click="goToPrevious">上一题</button>
        <button class="correct_button1" @click="goToNext">下一题</button>
      </div>
  
    </div>
  </template>
  
  
  
  <script setup>
  import { ref } from 'vue';
  import { ElMessage } from 'element-plus';
  import { useRouter } from 'vue-router';
  
  const score = ref('');
  const router = useRouter();
  const submit_time = ref('12月26日 23:59');
  const assignmentNumber = ref(1);
  const user_name = ref('张三');
  const question_order = ref(1);
  const question_text = ref('怎么实现盒子垂直排列？');
  const answer_text = ref('要实现盒子（元素）垂直排列的效果，您可以使用多种CSS布局技术。');
  const correct_answer = ref('要实现盒子（元素）垂直排列的效果，您可以使用多种CSS布局技术。');
  const num = ref(0)
  
  
  </script>
  
  <style scoped>
  .assignment-header {
    display: flex;
    height: 7lvh;
    width: 100lvw;
    background-color: #13227A;
    color: white;
  }
  
  .back-button {
    background-color: transparent;
    margin-left: 1%;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
  }
  
  .back-button:hover {
    color: #d72d2d;
  }
  
  .correct_header1 {
    margin-left: 26%;
    margin-top: 1.2%;
  }
  
  .correct_header2 {
    margin-left: 2%;
    margin-top: 1.2%;
  }
  
  .assign_button {
    position: absolute;
    margin-top: 0.8%;
    margin-left: 87%;
    height: 5%;
    width: 10%;
    background-color: #1a3a8b;
    color: white;
    border: 1px solid #ffffff;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .assign_button:hover {
    background-color: #98a2bb;
  }
  
  .correct_content {
    display: flex;
    flex-direction: column;
    height: 89lvh;
    width: 100lvw;
  }
  
  .correct_content1 {
    float: left;
    height: 30%;
    width: 100%;
    background-color: rgb(255, 255, 255);
  }
  
  .correct_title {
    margin-left: 4%;
    font-size: 22px;
    font-weight: 700;
    color: rgb(0, 0, 0);
  }
  
  .correct_question {
    margin-left: 4%;
    font-size: 16px;
    font-weight: 400;
    line-height: 10%;
    color: rgb(50, 47, 47);
  }
  
  .answer_content {
    height: 60%;
    width: 92%;
    margin-left: 4%;
    font-size: 14px;
    font-weight: 400;
    color: rgb(5, 5, 5);
    background-color: #f5f7f9;
    border: 0px solid #2084ff;
  }
  
  .answer_content:hover {
    border-width: 1px;
  }
  
  .correct_content2 {
    float: left;
    height: 25%;
    margin-top: 1.5%;
    margin-left: 4%;
    width: 92%;
    background-color: #EFF6FF;
    border: 0px solid #2084ff;
  }
  
  .correct_content2:hover {
    border-width: 1px;
  }
  
  .correct_title2 {
    margin-left: 0.5%;
    font-size: 20px;
    font-weight: 700;
    line-height: 10%;
    color: rgb(0, 0, 0);
  }
  
  .correct_answer_cotent {
    font-size: 14px;
    color: #4B5563;
  }
  
  .correct_content3 {
    float: left;
    height: 24%;
    margin-top: 0.5%;
    margin-left: 4%;
    width: 91.6%;
    background-color: #EFF6FF;
    border: 0px solid #2084ff;
    padding-top: 0.5%;
    padding-left: 0.5%;
  }
  
  .correct_content3:hover {
    border-width: 1px;
  }
  
  .grade_input {
    margin-left: 0.3%;
    width: 97%;
    height: 25%;
  }
  
  .correct_button {
    margin-left: 4%;
    margin-top: 1%;
    width: 92%;
    height: 10%;
  }
  .correct_button1 {
    margin-left: 25%;
    width: 12.5%;
    height: 80%;
    font-size: 24px;
    background-color: #13227A;
    color: white;
    border: 1px solid #ffffff;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .correct_button1:hover {
    background-color: rgb(202, 124, 124);
  }
  </style>